package com.example.demo.thread.state;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 14:12 2020/5/29
 * @Modified By:
 */
public class MyThread4 extends Thread {

    @Override
    public void run() {
        synchronized (this) {
            try {
                wait();
            } catch (InterruptedException e) {
                e.printStackTrace();
                System.err.println("正在等待唤醒，但是被异常中断");
            }
        }

    }

}
